<!DOCTYPE html>
<% include ./head.html%>

<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="">
<link href="/boss/css/account/bootstrap.css" type="text/css" rel="stylesheet" media="all">
<link href="/boss/css/account/style.css" type="text/css" rel="stylesheet" media="all">
<link rel="stylesheet" href="/boss/css/account/lightbox.css">


<script type="text/javascript" src="/javascript/taccount.js"></script>

<style>
    p input{
        background-color: black;
        color: white;
        border: none;
        width: 90%;
        display: inline;
    }

    textarea{
        background-color: black;
        border: none;
        text-align:left;
        width: auto;
    }

    li input{
        background-color: black;
        border: none;
        text-align:center;
    }
    table tr th {
        text-align:center;
    }
    table tr td {
        text-align:center;
    }
    td input{
        background-color: black;
        border: none;
        text-align:center;
        color: white;
    }

    input{
        text-align:center;
    }
    .input-group-addon {
        width: 20%;
    }

    .disableClass {
        background-color: black;;
        color: white;
    }
</style>

<script >
  function F_Open_dialog()
  {
    document.getElementById("btn_file").click();
    $("#btn_file").css('display','block');
  }


</script>



<div class="modal-content">
    <script type="text/javascript">
        $(function(){
            readControle();
        })

    </script>


    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"></span></button>
        <h4 class="modal-title">详细信息</h4>
    </div>
    <div class="modal-body modal-spa">
        <div class="about">

            <%   console.log("33333333333333333333333",data)  %>
            <div class="col-md-4 about-left ">
                <img src=<%=  data.url %>  "/image/Taccount/timg.jpg"  class="img-responsive"  alt="点击上传图片"  onclick="F_Open_dialog()">
                <input type="file" id="btn_file" style="display:none">
            </div>

            <input style="display: none" id="id" style="background-color: black" value= <%=  data.id %> >
            <div class="col-md-8 about-right wthree">
                <h3> 姓名 <span> <%=  data.name %> </span></h3>
                <ul class="address">
                    <li>
                        <ul class="agileits-address-text ">
                            <li><b>入院号：</b></li>
                            <li> <input  id="hospitalId" style="background-color: black" value=<%=  data.hospitalId %> ></li>
                        </ul>
                    </li>

                    <li>
                        <ul class="agileits-address-text ">
                            <li><b>入住房号：</b></li>
                            <li> <input  id="roomId" style="background-color: black" value=<%=  data.roomId %> ></li>
                        </ul>
                    </li>

                    <li>
                        <ul class="agileits-address-text ">
                            <li><b>性别：</b></li>
                            <li> <input  id="sex" style="background-color: black" value=<%=  data.sex %> ></li>
                        </ul>
                    </li>

                    <li>
                        <ul class="agileits-address-text">
                            <li><b>电话：</b></li>
                            <li><input id="phone"  style="background-color: black" value=<%=  data.phone %> ></li>
                        </ul>
                    </li>
                    <li>
                        <ul class="agileits-address-text">
                            <li><b>出生年月：</b></li>
                            <li><input id="birthday"  style="background-color: black" value=<%=  data.birthday %> ></li>
                        </ul>
                    </li>
                    <li>
                        <ul class="agileits-address-text">
                            <li><b>身份证：</b></li>
                            <li><input id="IdCard"  style="background-color: black" value=<%=  data.IdCard %> > </li>
                        </ul>
                    </li>

                </ul>
            </div>
            <div class="clearfix"> </div>
            <div class="about-text agileits-w3layouts">


                <div class="input-group col-md-12">
                    <div class=" input-group-addon" style="width:20%">往期病史</div>
                    <input  type="text" class=" form-control " id="history"  placeholder="请输入信息"  value=<%=  data.history %>>
                </div>

                <div class="input-group col-md-12">
                    <div class="input-group-addon" style="width:20%" >过敏史</div>
                    <input type="text" class="form-control" id="allergy" placeholder="请输入信息"  value=<%=  data.allergy %>>
                </div>


                <div class="input-group col-md-12">
                    <div class="input-group-addon">级护理等级</div>
                    <input type="text" class="form-control" id="level" placeholder="请输入信息"  value=<%=  data.level %>>

                </div>

                <div class="input-group col-md-12">
                    <div class="input-group-addon">收费标准/月</div>
                    <input type="text" class="form-control" id="total" placeholder="请输入信息"  value=<%=  data.total %>>
                </div>



                <div class="input-group col-md-12">
                    <div class="input-group-addon">缴费情况</div>
                    <input type="text" class="form-control" id="payInfo" placeholder="请输入信息"  value=<%=  data.payInfo %>>
                </div>

                <div class="input-group col-md-12">
                    <div class="input-group-addon">请假记录</div>
<!--
                    <input type="text" class="form-control" id="vacate" placeholder="请输入信息" value=<%=  data.vacate %>>
-->
                    <button  class="form-control btn btn-success" onclick="showTaccountDetail('vacate')">
                            显示请假记录
                    </button>

                    <button  class="form-control btn btn-primary" onclick="addTaccountDetail('vacate')">
                            添加请假记录
                    </button>
                </div>
                <div class="input-group col-md-12">
                    <div class="input-group-addon">120记录</div>
                  <!--  <input type="text" class="form-control" id="call" placeholder="请输入信息" value=<%=  data.call %>>-->

                    <button  class="form-control btn btn-success" onclick="showTaccountDetail('call')">
                        显示120记录
                    </button>

                    <button  class="form-control btn btn-primary" onclick="addTaccountDetail('call')">
                        添加120记录
                    </button>

                </div>

                <div class="input-group col-md-12">
                    <div class="input-group-addon">风险备注</div>
                    <input type="text" class="form-control" id="risk" placeholder="请输入信息" value=<%=  data.risk %>>
                </div>

                <div class="input-group col-md-12">
                    <div class="input-group-addon">饮食禁忌</div>
                    <input type="text" class="form-control" id="food" placeholder="请输入信息" value=<%=  data.food %>>
                </div>


                <div class="input-group col-md-12">
                    <div class="input-group-addon">喂食就</div>
                    <input type="text" class="form-control" id="feed" placeholder="请输入信息" value=<%=  data.feed %>>
                </div>

                <div class="input-group col-md-12">
                    <div class="input-group-addon">寿诞、节假日记录</div>
                  <!--  <input type="text" class="form-control" id="festival" placeholder="请输入信息" value=<%=  data.festival %>>-->

                    <button  class="form-control btn btn-success" onclick="showTaccountDetail('festival')">
                        显示寿诞、节假日记录
                    </button>

                    <button  class="form-control btn btn-primary" onclick="addTaccountDetail('festival')">
                        添加寿诞、节假日记录
                    </button>


                </div>
                <div class="input-group col-md-12">
                    <div class="input-group-addon">加餐记录</div>
                  <!--  <input type="text" class="form-control" id="extraMeal" placeholder="请输入信息" value=<%=  data.extraMeal %>>-->
                    <button  class="form-control btn btn-success" onclick="showTaccountDetail('extraMeal')">
                        显示加餐记录日
                    </button>

                    <button  class="form-control btn btn-primary" onclick="addTaccountDetail('extraMeal')">
                        添加加餐记录日
                    </button>
                </div>

                <div class="input-group col-md-12">
                    <div class="input-group-addon">水电费记录</div>
                   <!-- <input type="text" class="form-control" id="WEpay" placeholder="请输入信息" value=<%=  data.WEpay %>>-->
                    <button  class="form-control btn btn-success" onclick="showTaccountDetail('WEpay')">
                        显示水电费记录
                    </button>

                    <button  class="form-control btn btn-primary" onclick="addTaccountDetail('WEpay')">
                        添加水电费记录
                    </button>

                </div>

                <div class="input-group col-md-12">
                    <div class="input-group-addon">额外电器</div>
                    <input type="text" class="form-control" id="electric" placeholder="请输入信息" value=<%=  data.electric %>>
                </div>


                <div class="input-group col-md-12">
                    <div class="input-group-addon">气垫床、轮椅 </div>
                    <input type="text" class="form-control" id="bed" placeholder="请输入信息" value=<%=  data.bed %>>
                </div>


                <div class="input-group col-md-12">
                    <div class="input-group-addon">耗材记录 </div>
                    <!--<input type="text" class="form-control" id="consumable" placeholder="请输入信息" value=<%=  data.consumable %>>-->

                    <button  class="form-control btn btn-success" onclick="showTaccountDetail('consumable')">
                        显示耗材记录
                    </button>

                    <button  class="form-control btn btn-primary" onclick="addTaccountDetail('consumable')">
                        添加耗材记录
                    </button>

                </div>

                <div class="input-group col-md-12">
                    <div class="input-group-addon">备用金 </div>
                    <input type="text" class="form-control" id="standbyMoney" placeholder="请输入信息" value=<%=  data.standbyMoney %>>
                </div>

                <div class="input-group col-md-12">
                    <div class="input-group-addon">户籍地址 </div>
                    <input type="text" class="form-control" id="address" placeholder="请输入信息" value=<%=  data.address %>>
                </div>


                <div class="input-group col-md-12">
                    <div class="input-group-addon">工作单位 </div>
                    <input type="text" class="form-control" id="unit" placeholder="请输入信息" value=<%=  data.unit %>>
                </div>
                <div class="input-group col-md-12">
                    <div class="input-group-addon">入院时间 </div>
                    <input type="text" class="form-control" id="intoRoomTime" placeholder="请输入信息" value=<%=  data.intoRoomTime %>>
                </div>
                <div class="input-group col-md-12">
                    <div class="input-group-addon">出院时间 </div>
                    <input type="text" class="form-control" id="outRoomTime" placeholder="请输入信息" value=<%=  data.outRoomTime %>>
                </div>
                <div class="input-group col-md-12">
                    <div class="input-group-addon">额外通知 </div>
                    <input type="text" class="form-control" id="extendInfo" placeholder="请输入信息" value=<%=  data.extendInfo %>>
                </div>


                <p> 亲属信息</p>
                <table id="compneyImageContent" class="table table-bordered">
                    <thead>
                    <tr style="background-color: black">
                        <th style="background-color: black"><font color="white">姓名</font></th>
                        <th style="background-color: black"><font color="white">关系</font></th>
                        <th style="background-color: black"><font color="white">电话</font></th>
                        <th style="background-color: black"><font color="white">微信号</font></th>
                        <th style="background-color: black"><font color="white">单位</font></th>
                    </tr>
                    </thead>
                    <tbody>
                    <%  console.log(data_relation) ;if(data_relation[0]){  %>
                    <tr>

                        <td style="display: none"><input id="uid1"  value=<%=  data_relation[0].uid %> ></td>
                        <td><input id="name1" value=<%=  data_relation[0].name %> ></td>
                        <td><input id="relation1" value=<%=  data_relation[0].relation %> > </td>
                        <td><input id="phone1" value=<%=  data_relation[0].phone %> > </td>
                        <td><input id="wechat1" value=<%=  data_relation[0].wechat %> > </td>
                        <td><input id="reuint1" value=<%=  data_relation[0].uint %> > </td>
                    </tr>
                    <% }else { %>
                    <tr>
                        <td style="display: none"><input id="uid1" ></td>
                        <td><input id="name1"  ></td>
                        <td><input id="relation1"  > </td>
                        <td><input id="phone1"  > </td>
                        <td><input id="wechat1"  > </td>
                        <td><input id="reuint1"  > </td>
                    </tr>
                    <%  } %>

                    <% if(data_relation[1]){  %>
                    <tr>
                        <td style="display: none"><input id="uid2"  value=<%=  data_relation[1].uid %> ></td>
                        <td><input id="name2" value=<%=  data_relation[1].name %> ></td>
                        <td><input id="relation2" value=<%=  data_relation[1].relation %> > </td>
                        <td><input id="phone2" value=<%=  data_relation[1].phone %> > </td>
                        <td><input id="wechat2" value=<%=  data_relation[1].wechat %> > </td>
                        <td><input id="reuint2" value=<%=  data_relation[1].uint %> > </td>

                    </tr>

                    <% }else { %>
                    <tr>

                        <td style="display: none"><input id="uid2" ></td>
                        <td><input id="name2"  ></td>
                        <td><input id="relation2"  > </td>
                        <td><input id="phone2" > </td>
                        <td><input id="wechat2" > </td>
                        <td><input id="reuint2" > </td>
                    </tr>
                    <%  } %>


                    <%  console.log(data_relation[2]) ;if(data_relation[2]){  %>
                    <tr>
                        <td style="display: none"><input id="uid3"  value=<%=  data_relation[2].uid %> ></td>
                        <td><input id="name3" value=<%=  data_relation[2].name %> ></td>
                        <td><input id="relation3" value=<%=  data_relation[2].relation %> > </td>
                        <td><input id="phone3" value=<%=  data_relation[2].phone %> > </td>
                        <td><input id="wechat3" value=<%=  data_relation[2].wechat %> > </td>
                        <td><input id="reuint3" value=<%=  data_relation[2].uint %> > </td>
                    </tr>
                    <% }else { %>
                    <tr>
                        <td style="display: none"><input id="uid3" ></td>
                        <td><input id="name3" ></td>
                        <td><input id="relation3" > </td>
                        <td><input id="phone3"  > </td>
                        <td><input id="wechat3"  > </td>
                        <td><input id="reuint3"  > </td>
                    </tr>
                    <%  } %>

                    </tbody>
                </table>
                <button class="btn btn-success navbar-right" id="readControle" onclick="readControle()">允许修改</button>
                <button class="btn btn-success navbar-right"id="sub"  onclick="updateTaccount()">提交</button>
            </div>
        </div>
    </div>
</div>